package com.myc.subject.application.convert;

import com.myc.subject.application.dto.SubjectAnswerDTO;
import com.myc.subject.domain.entity.SubjectAnswerBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 将BO转为 SubjectCategory的拦截器,使用mapstruct的工厂进行转换
 * */
@Mapper
public interface SubjectAnswerDTOConverter {

    SubjectAnswerDTOConverter INSTANCE = Mappers.getMapper(SubjectAnswerDTOConverter.class);

    SubjectAnswerBO convertDtoToAnswerBO(SubjectAnswerDTO subjectAnswerDTO);

    List<SubjectAnswerDTO> convertBoToAnswerDto(List<SubjectAnswerBO> subjectAnswerBOS);

    SubjectAnswerDTO convertBoToAnswerDto(SubjectAnswerBO subjectAnswerBO);

    List<SubjectAnswerBO> convertListDTOToBo(List<SubjectAnswerDTO> dtoList);

}
